UOX3 Triggers Supported

last updated Wednesday, 19th January, 2000 by Abaddon

Trigger and Description

RANGE

Description: Player in range
RANGE # 
Distance between item and player must be less than #
On failure prints out a message and aborts the trigger

EMT 

Description: Player says something when trigger is activated
EMT Text 
Player emotes Text

MSG

Description: Display a message when trigger is actived
MSG Text 
Text is sent to the player as a system message

RANDOM_ITEM

Description: %chance to IADD item
RANDOM_ITEM uiItemNum uiChance InBackPack
uiItemNum is the item number, or list, to add
uiChance is the % chance of adding the item
InBackpack 0 means it is at your feet, 1 indicates it is in your pack

RANDOM_NPC 

Description: %chance to NADD npc
RANDOM_NPC uiItemNum uiChance
uiItemNum is the NPC number, or list, to add
uiChance is the % chance of adding the npc

CMSG 

Description: Sets the token completed message
CMSG Text
Text is sent as a sysmessage when completed, to the player

FMSG 

Description: Sets the fail message
FMSG Text
Text is set to the message to say on failure

SND 

Description: Plays a sound when trigger is activated
SND Hex1 Hex2
Hex1 is a hex number, first part to play
Hex2 is a hex number, second half of part to play

REMOVE 

Description: Remove item after triggered
Removes the item after it is triggered. It is stack safe (if 5, ends up being 4, else deletes)

SETTRG 

Description: Sets items trigger to a new trigger
SETTRG trigNum
trigNum is the new trigger

SETID 

Description: Set items id to new id
SETID id1 id2
id1 is a hex number
id2 is a hex number
changes into item id id1 id2

COLOR 

Description: Set the color check
COLOR id1 id2
Sets the color check to id1 and id2

SETEVID 

Description: Set envoked items id to new id
SETEVID id1 id2
id1 is first half, a hex number
id2 is second half, also a hex number
Morphs envoked item into id1 id2

IFOWNER 

Description: If item is owned by triggerer
Ensures that you are the owner, if not, trigger aborts going any further

IFSKL 

Description: If Skill meets a certain criteria
IFSKL skill value
skill is the skill, in numeric, to check
value is the minimum skill required, on failure prints out the failure message

EVDUR 

Description: Math on Evoked item HP
EVDUR j
If item is at max health, and j > 0 then it prints out already totally repaired
item's health is then increased by j (j can be negative)
Prints out a message saying what happened, printing out cmsg on success, or fmsg on failure, or default if cmsg and fmsg are not defined
If it is ruined completely, it destroys the item. EVDUR IS stack safe.

EVMAXDUR 

Description: Math on evoked item MAXHP
EVMAXDUR j
Increases maximum health of item by j (j can be negative)
If it is ruined it is destroyed. Stack safe.

DUR 

Description: Math on item HP
DUR j
Exactly the same as EVDUR, but on item, not envoked item

MAXDUR

MAXDUR j
Exactly the same as EVMAXDUR, but on item, not envoked item

IFHUNGER 

Description: If hunger meets a certain criteria
IFHUNGER level
if character's hunger is greater than level, print out failure message and abort the trigger

HUNGER 

Description: Do math on players hunger from 0 to 6
HUNGER toAdd
toAdd is added to the players hunger. toAdd can be negative. 6 is full, 0 is empty
ensures that hunger is between 1 and 6 inclusive

IFKARMA 

Description: If karma meets a certain criteria
IFKARMA flag value
flag is either < or >
value is a valid karma value
if flag is < and value is 500, it means that a persons karma must be below 500

KARMA 

Description: Do math on players karma
KARMA add
add is a numeric karma value to add to player's karma. add can be negative
ensures that karma is a valid karma value (-10k to 10k)

IFFAME 

Description: If fame meets a cetain criteria
IFFAME flag value
flag is either > or <
value is a valid fame value
if flag is < and value is 500, it means that a persons fame must be below 500

FAME 

Description: Do math on players fame
FAME add
add is a numeric fame value to add to player's fame. add can be negative
ensures that fame is a valid fame value

SETOWNER 

Description: Set ownership of item
it sets the ownership value of the item to player

NEWOWNER 

Description: Set ownership of item
same as SETOWNER

NADD 

Description: Adds an NPC
NADD toAdd
toAdd is an npc num from the scripts to add at player's location

IDADD 

Description: Add item in front of player by ID
IDADD id1 id2 low high
Adds a random number of items between low and high of item of id id1 id2

NEWTYPE, SETTYPE 

Description: set active item type
NEWTYPE type
SETTYPE type
type is a valid item type
Item's type is set to type

IADD 

Description: Adds an item in front of player
IADD itemNum inBackpack
Adds an item itemNum either in front of the player (inBackpack is missing or 0) or in the players pack (inBackpack all other values)

DISABLE 

Description: Disables an item for n seconds
DISABLE n
n is number of seconds to disable item for

PUT 

Description: Send player to X Y Z when triggered
PUT x y z
x y z is a valid location in the world

ACT 

Description: Makes player perform an action
ACT action
action is a valid HEX number of the action to do

HEA 

Description: Do math on players health
HEA toAdd
toAdd is an amount to heal (+ve value) or harm (-ve value) the player by
if health drops to 0, then player dies

MAN 

Description: Do math on players mana
MAN toAdd
toAdd is an amount to give (+ve value) or take from(-ve value) the player's mana
If not enough (<=0), says too tired and quits trigger

STAM 

Description: Do math on player's stamina
STAM toAdd
toAdd is an amount to give (+ve value) or take from(-ve value) the player's stamina
If not enough (<=0), says too tired and quits trigger

STR 

Description: Do math on player's strength
STR toAdd
toAdd is an amount to add or take from player's strength. If take, strength is always at least 1

INT 

Description: Do math on player's intelligence
INT toAdd
toAdd is an amount to add or take from player's intelligence. If take, intelligence is always at least 1

DEX 

Description: Do math on player's dexterity
DEX toAdd
toAdd is an amount to add or take from player's dexterity. If take, dexterity is always at least 1

CSKL 

Description: Make a check on the player's skill
CSKL skill
skill is skill value to check. If baseskill in skill is greater than a random num, it passes, otherwise you fail and the trigger aborts. On failure, skill is advanced

SKL 

Description: Do math on the player's skill
SKL skill value
skill is the skill to check
value is the amount to add/subtract to skill
ensures that skill is always between 0 and 1000

REQ 

Description: check if envoked by certain item
REQ

NEED 

Description: The item here is required and will be removed
NEED
checks to see if the item needed is in the pack

USEUP 

Description: The item here is required and will be removed
USEUP
checks to find the item in the pack. If not, aborts trigger, if found, removes 1, and either deletes if none left, or leaves it with one less. ie stack safe

MAKE 

Description: give the user the make menu
MAKE menu skill mid1 mid2
mid1 is the id of one material needed
mid2 is the id of the second material needed
menu is the make menu to open
skill is the skill to use

CALCUSES 

Description: calculate an item's uses
CALCUSES num
num is the number of uses to add to the amount used

SETUSES 

Description: set an item's uses
SETUSES num
sets the number of uses of the item to num

RNDUSES 

Description: randomly sets an item's uses
RNDUSES low high
sets number of uses as a random number between low and high

IDFX 

Description: Makes an effect at player's location by ID
IDFX hnum1 hnum2
hnum1 and hnum2 are hex numbers specifying the value of the moving effect to make

RAND 

Description: Does a random check
RAND max min
Generates a random number between 0 and max, and it must be lower than min, or it fails
eg RAND 10 8
number must be between 0 and 10, and less than 8 or it fails

TARG 

Description: Give a targeter with trigger number
TARG x
player's targtrig value is set to x, and calls for a target

NEWNAME 

Description: Give the new item/npc a name
NEWNAME text
text is the name of the item/npc added

NEWTRIG 

Description: Give the new item/npc a dynamic trigger
NEWTRIG trigger
trigger is the trigger number of the new NPC

NEWWORD 

Description: Give the new npc a trigger word
NEWWORD word
word is the trigger word for the new npc, should be in uppercase

MISC 

Description: performs a miscellaneous function
MISC bank // the actual word bank is used
opens the bank of the player